﻿@{
    ViewBag.Title = "特种人员台账明细";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section scripts{
        <script src="~/Areas/Senv/ViewModels/Senv.com.js"></script>
        <script src="~/Areas/Senv/ViewModels/Senv.viewModel.edit.js"></script>
        <script type="text/javascript">
            using(['numberbox', 'lookup']);
            var  viewModel =function(data){
                Senv.viewModel.edit.apply(this, arguments);//继承Senv.viewModel.edit

                this.CheckEle = ko.observable('男');
                this.showChecked = function () {
                    alert(this.CheckEle());
                    alert(this.form.Tzrytz_Ryxb());
                };

            };
     
            var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
            ko.bindingViewModel(new viewModel(data));
        </script>
}

    <div class="z-toolbar">
        <a id="a_save" href="#" plain="true" class="easyui-linkbutton" icon="icon-save" data-bind="click:saveClick,linkbuttonDisable:readonly" title="保存">保存</a>
        <a id="a_undo" href="#" plain="true" class="easyui-linkbutton" icon="icon-undo" data-bind="click:rejectClick,linkbuttonDisable:readonly" title="撤消">撤消</a>
        <a id="a_audit" href="#" plain="true" class="easyui-linkbutton" icon="icon-user-accept" data-bind="click:auditClick,easyuiLinkbutton:approveButton" title="审核">审核</a>
       @* <a id="a_printer" href="#" plain="true" class="easyui-linkbutton" icon="icon-printer" title="打印" data-bind="click:printClick">打印</a>*@
        <div class="datagrid-btn-separator"></div>
        <a id="a_first" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_first" data-bind="click:firstClick,linkbuttonEnable:scrollKeys.firstEnable" title="第一条"></a> 
        <a id="a_previous" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_previous" data-bind="click:previousClick,linkbuttonEnable:scrollKeys.previousEnable" title="上一条"></a> 
        <a id="a_next" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_next" data-bind="click:nextClick,linkbuttonEnable:scrollKeys.nextEnable" title="下一条"></a> 
        <a id="a_last" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_last" data-bind="click:lastClick,linkbuttonEnable:scrollKeys.lastEnable" title="最后一条"></a> 
    </div>
    <div class="easyui-tabs"   data-options="fit:true,border:false">
     <div id="master"  data-options="iconCls:'icon-user'" title = "特种人员明细" align="center" class="container_12" data-bind="inputwidth:0.9,autoheight:73">
     <div class="grid_1 lbl ">&nbsp</div>
            <div class="clear"></div>
            <div class="grid_1 lbl required">单据编号</div>
            <div class="grid_3 val"><input type="text" data-bind="value:form.Tzrytz_BillNo,readOnly:true" class="z-txt readonly"/></div>
            <div class="grid_1 lbl required">人员编号 </div>
            <div class="grid_3 val required"><input type="text"  data-bind="value:form.Tzrytz_Rybh,readOnly:readonly" required="true" class="z-txt"/></div>
            <div class="clear"></div>
            <div class="grid_1 lbl">人员姓名 </div>
            <div class="grid_3 val required"><input type="text" data-bind="value:form.Tzrytz_Rymc,readOnly:readonly" class="z-txt"  /></div>
            <div class="grid_1 lbl">人员性别 </div>
            <div class="grid_3 val"><input type="text" data-bind="comboboxValue:form.Tzrytz_Ryxb,datasource:dataSource.SexItems,comboboxReadOnly:readonly" class="z-txt easyui-combobox" required="true" /></div>
            <div class="clear"></div>
            <div class="grid_1 lbl">取证时间</div>
            <div class="grid_3 val"><input type="text" data-bind="dateboxValue:form.Tzrytz_Ccqzsj,dateboxReadOnly:readonly" class="easyui-datebox z-txt" /></div>
            <div class="grid_1 lbl">复审时间</div>
            <div class="grid_3 val"><input type="text" data-bind="dateboxValue:form.Tzrytz_Ccfssj,dateboxReadOnly:readonly" class="z-txt easyui-datebox" /></div>
     @*   <div class="grid_1 lbl">人员性别2 </div>
        <div class="grid_5" >
            <input type="radio" name="1" value="男" data-bind="checked: CheckEle"  />男
            <input type="radio" name="1" value="女" data-bind="checked: CheckEle" />女
                    <button type="button" data-bind="click:showChecked">show checked</button>
        </div>*@
        <div class="clear"></div> 
        <div class="grid_1 lbl">操作证号 </div>
        <div class="grid_3 val required"><input type="text" data-bind="value:form.Tzrytz_Czzh,readOnly:readonly" class="z-txt"  /></div>
        <div class="grid_1 lbl">发证机关 </div>
        <div class="grid_3 val required"><input type="text" data-bind="value:form.Tzrytz_Fzjg,readOnly:readonly" class="z-txt"  /></div>
 
        <div class="clear"></div> 
        <div class="grid_1 lbl">所属工种 </div>
        <div class="grid_3 val required"><input type="text" data-bind="value:form.Tzrytz_Gzbh,readOnly:readonly" class="z-txt"  /></div>
        <div class="grid_1 lbl">备注说明 </div>
        <div class="grid_3 val required"><input type="text" data-bind="value:form.Tzrytz_Remark,readOnly:readonly" class="z-txt"  /></div>
        <div class="clear"></div>
        <div class="grid_1 lbl">审批状态</div>
        <div class="grid_3 val"><input type="text" id="ApproveState" data-bind="value:form.ApproveState,readOnly:true" class="z-txt readonly"/></div>
        <div class="grid_1 lbl">审批意见</div>
        <div class="grid_3 val"><input type="text" id="ApproveRemark" data-bind="value:form.ApproveRemark,readOnly:true"  class="z-txt readonly"/></div>
        <div class="clear"></div>
        <div class="grid_1 lbl">审批人 </div>
        <div class="grid_3 val"><input type="text" id="ApprovePerson"data-bind="value:form.ApprovePerson,readOnly:true" class="z-txt readonly"/></div>
        <div class="grid_1 lbl">审批日期</div>
        <div class="grid_3 val"><input type="text" id="ApproveDate" data-bind="dateboxValue:form.ApproveDate,dateboxReadOnly:true"  class="z-txt easyui-datebox readonly"/></div>

        <div class="clear"></div>
        <div class="grid_1 lbl">编制日期</div>
        <div class="grid_3 val"><input type="text" id="CreateDate" data-bind="dateboxValue:form.CreateDate,dateboxReadOnly:true" class="z-txt easyui-datebox readonly" /></div>
        <div class="grid_1 lbl">编制人</div>
        <div class="grid_3 val "><input type="text" id="CreatePerson" data-bind="value:form.CreatePerson,readOnly:true" class="z-txt readonly" /></div>
                
        <div class="clear"></div>
        <div class="grid_1 lbl">修改日期</div>
        <div class="grid_3 val"><input type="text" id="UpdateDate" data-bind="dateboxValue:form.UpdateDate,dateboxReadOnly:true" class="z-txt easyui-datebox readonly" /></div>
        <div class="grid_1 lbl">修改人</div>
        <div class="grid_3 val "><input type="text" id="UpdatePerson" data-bind="value:form.UpdatePerson,readOnly:true" class="z-txt readonly" /></div>
 
    </div>
  </div>

